package com.zlll.winner.business.service.activity;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.activity.ActivityApply;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlll.winner.business.model.activity.ActivityManagement;
import com.zlll.winner.business.vo.activity.ApplyInfoVo;

/**
 * <p>
 * 活动申请管理 服务类
 * </p>
 *
 * @author qsx
 * @since 2019-09-16
 */
public interface IActivityApplyService extends IService<ActivityApply> {
    IPage<ActivityApply> getActivityApplyByActivityId(Long activityId,String cityCode,String name,String telphone,Long startTime,Long endTime,Integer pageNo,Integer pageSize);

    Boolean updateStatus(Long id,Integer status,Long userId);

    ActivityManagement updateActivityApply(Long id,String name,String telphone,Integer num,String externalInfo,Long userId);

    ActivityApply saveApply(ActivityApply activityApply)throws Exception;

    IPage<ApplyInfoVo> getApplyByUserId(Long userId, Integer pageNo, Integer pageSize);
}
